package cn.zhangxin.pethome.system.employee.mapper;

import cn.zhangxin.pethome.base.mapper.BaseMapper;
import cn.zhangxin.pethome.system.employee.domain.Employee;
import cn.zhangxin.pethome.system.employee.domain.EmployeeBo;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface EmployeeMapper extends BaseMapper<Employee> {
    //查询多条数据，不包含账户密码
    List<EmployeeBo> findAllBo();
    //查询单挑数据，不包含密码
    EmployeeBo findOneBo(Long id);
    //根据logininfoId查询员工
    Employee findOneByLogininfoId(Long logininfoId);
    //根据员工id查询该员工的权限(sn)
    List<String> getPermissionSn(Long employeeid);
    //根据员工查询角色
    List<Long> findRoleByEmpId(Long id);
    //根据员工的名字查询员工
    Employee findOneByUsername(String username);

}
